package duylinh

class VatLieu implements Serializable{

    static belongsTo = [SanPham]
    static transients = ['avatarUrl']

    // Dong k54-2
    String ten


    // dong, kem ...
    String chatLieu

    Double doDay
    Double chieuRong
    Double chieuDai

    String doDayDonvi
    String chieuRongDonvi
    String chieuDaiDonvi

    Boolean dangCuon

    String avatarUrl

    String dacDiem

    NhaCungUng nhaCungUng

    User creator
    User updater

    Date dateCreated
    Date lastUpdated

    static constraints = {
        creator nullable: false
        updater nullable: true
        lastUpdated nullable: true
        nhaCungUng nullable: true
        doDay( nullable: true )
        chieuDai( nullable: true )
        chieuRong( nullable: true )
        doDayDonvi( nullable: true )
        chieuRongDonvi( nullable: true )
        chieuDaiDonvi( nullable: true )
    }
}
